/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package server.process;

import java.util.Comparator;
import server.entity.ViewPhoto;

/**
 *
 * @author Hoang
 */
public class PhotoViewComparator implements Comparator<ViewPhoto> {

    public int compare(ViewPhoto o1, ViewPhoto o2) {
        return o1.getPhotoView()-o2.getPhotoView();
    }

}
